package com.siysoft.tc.base.bean.to;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * The persistent class for the db_trade database table.
 * 
 */
@Entity
@Table(name="db_trade")
public class Trade implements Serializable {
	private static final long serialVersionUID = 1L;
	private int tradeId;
	private int empId;
	private int orderId;
	private Timestamp tradeDate;
	private BigDecimal tradePrice;
	private int tradeType;
	private int userId;
	private String title;

	public Trade() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="trade_id")
	public int getTradeId() {
		return this.tradeId;
	}

	public void setTradeId(int tradeId) {
		this.tradeId = tradeId;
	}


	@Column(name="emp_id")
	public int getEmpId() {
		return this.empId;
	}

	public void setEmpId(int empId) {
		this.empId = empId;
	}


	@Column(name="order_id")
	public int getOrderId() {
		return this.orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}


	@Column(name="trade_date")
	public Timestamp getTradeDate() {
		return this.tradeDate;
	}

	public void setTradeDate(Timestamp tradeDate) {
		this.tradeDate = tradeDate;
	}


	@Column(name="trade_price")
	public BigDecimal getTradePrice() {
		return this.tradePrice;
	}

	public void setTradePrice(BigDecimal tradePrice) {
		this.tradePrice = tradePrice;
	}


	@Column(name="trade_type")
	public int getTradeType() {
		return this.tradeType;
	}

	public void setTradeType(int tradeType) {
		this.tradeType = tradeType;
	}


	@Column(name="user_id")
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Column(name="title")
	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}

}